<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('书籍选择')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-book_id" data-rule="required" data-source="site/girls/selectBook?model=book" class="form-control selectpage" name="row[book_id]" type="text" value="{$row.book_id|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recommend')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-recommend" class="form-control" name="row[recommend]" type="number" value="{$row.recommend|htmlentities}">-->
            {:build_radios('row[recommend]', ['0'=>'下架', '1'=>'上架'],$row.recommend)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_book')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-new_book" class="form-control" name="row[new_book]" type="number" value="{$row.new_book|htmlentities}">-->
            {:build_radios('row[new_book]', ['0'=>'下架', '1'=>'上架'],$row.new_book)}
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-book_id" data-rule="required" data-source="site/girls/selectBook?model=book" class="form-control selectpage" name="row[book_id]" type="text" value="{$row.book_id|htmlentities}">-->
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
